<template>
  <view>
    <!--更多服务-->
    <u-navbar
      is-back="true"
      back-icon-color="#f6f6f6"
      title="关于我们"
      title-color="#f6f6f6"
      :background="navBackground"
    ></u-navbar>
    <u-cell-group>
      <u-cell-item
        icon="info-circle"
        @click="navToPage('/pages/secondary/team', true)"
        title="作品团队"
      ></u-cell-item>
      <u-cell-item
        icon="edit-pen"
        @click="navToPage('/pages/secondary/callback', true)"
        title="意见反馈"
      ></u-cell-item>
      <u-cell-item
        icon="heart"
        @click="navToPage('/pages/secondary/support', true)"
        title="创作支持"
      ></u-cell-item>
    </u-cell-group>
  </view>
</template>
<script>
let app = getApp();
export default {
  data() {
    return {
      navBackground: app.globalData.navBackground,
    };
  },
  methods: {
    navToPage(url, isOpen, needLogin) {
      if (!isOpen) {
        app.showToast('此功能开发中，请稍后再试~');
        return;
      }
      if (needLogin && !app.globalData.isLogin) {
        app.showToast('您还没有登陆哦~');
        return;
      }
      uni.navigateTo({
        url: url,
      });
    },
  },
};
</script>
<style></style>
